package com.qyhl.module_practice.team.detail;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeTeamBean;

public class PracticeTeamDetailPresenter implements PracticeTeamDetailContract.PracticeTeamDetailPresenter {
    private PracticeTeamDetailActivity mView;
    private PracticeTeamDetailModel mModel;

    PracticeTeamDetailPresenter(PracticeTeamDetailActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeTeamDetailModel(this);
    }

    @Override
    public void getDetail(String orgId, String volId) {
        mModel.getDetail(orgId, volId);
    }

    @Override
    public void joinTeam(String orgId, String volId) {
        mModel.joinTeam(orgId, volId);
    }

    @Override
    public void exitTeam(String orgId, String volId) {
        mModel.exitTeam(orgId, volId);
    }

    @Override
    public void setDetail(PracticeTeamBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }

    @Override
    public void joinSuccess(String msg) {
        mView.joinSuccess(msg);
    }

    @Override
    public void joinError(String msg) {
        mView.joinError(msg);
    }

    @Override
    public void exitSuccess(String msg) {
        mView.exitSuccess(msg);
    }

    @Override
    public void exitError(String msg) {
        mView.exitError(msg);
    }
}
